
<h3 class="header smaller lighter blue mg-top12 mg-bottom20">编辑信息展示</h3>
<div class="g-backrealdetails clearfix bor-border interface">

<form action="/manage/updateInformation/{{ $list['id'] }}" method="post" enctype="multipart/form-data" class="registerform">
    {{ csrf_field() }}
    <table class="table table-hover">
        <tbody>
            <tr>
                <td class="text-right editlink-tit">
                    信息名称：
                </td>
                <td class="text-left">
                    <input type="text" name="title" value="{{ $list['title'] }}" datatype="*" nullmsg="请填写名称">
                    <i class="light-red ace-icon fa fa-asterisk"></i>
                </td>
            </tr>
            <tr>
                <td class="text-right editlink-tit">
                    识别码：
                </td>
                <td class="text-left">
                    <input type="text" name="key" value="{{ $list['key'] }}" datatype="/\w{2,30}/i" nullmsg="请填写识别码" errormsg="请填写2-30个英文词语">
                    <i class="light-red ace-icon fa fa-asterisk">该条信息的唯一标示,英文字母,建议用信息名称翻译</i>
                </td>
            </tr>
            <tr>
                <td class="text-right">信息类型：</td>
                <td class="text-left">
                    <input type="text" class="col-sm-6" name="type" value="{{ $list['type'] }}" datatype="/\w{2,30}/i" nullmsg="请填写信息类型" errormsg="按提示信息正确填写">
                    <i class="light-red ace-icon fa fa-asterisk">目前主要有"aboutUs"(关于我们),"partner"(合作伙伴)两种</i>
                </td>
            </tr>
            <tr>
                <td class="text-right">封面：</td>
                <td class="text-left">
                    <div style="width:160px;">
                        <input type="file" name="pic" id="input_upload_file">
                        <i class="light-red ace-icon fa fa-asterisk"></i>
                    </div>

                </td>
            </tr>
            <tr>
                <td class="text-right"></td>
                <td class="text-left">
                    <img src="{{url($list['pic'])}}" alt="">
                </td>
            </tr>
            <tr>
                <td class="text-right">内容：</td>
                <td class="text-left col-xs-8">
                    <script id="editor" name="content" type="text/plain" >{!! htmlspecialchars_decode($list['content']) !!}</script>

                    <i class="light-red ace-icon fa fa-asterisk"></i>
                </td>
            </tr>
            <tr>
                <td class="text-right">是否显示</td>
                <td class="text-left">
                    <label><input class="ace" type="radio" name="is_show" value="1" @if($list['is_show'] ==1)checked="checked"  @endif><span class="lbl"> 是</span></label>
                    <label><input class="ace" type="radio" name="is_show" value="0" @if($list['is_show'] ==0)checked="checked"  @endif><span class="lbl"> 否</span></label>
                </td>
            </tr>
            <tr>
                <td class="text-right">排序：</td>
                <td class="text-left">
                    <div class="clearfix pull-left">
                        <input type="text" class="input-mini" id="spinner3" name="sort" value="{{ $list['sort'] }}" />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="text-right"></td>
                <td class="text-left">

                    <button class="btn btn-primary btn-sm" type="submit">提交</button>

                </td>
            </tr>
        </tbody>
    </table>
</form>
</div>
{!! Theme::asset()->container('specific-css')->usePath()->add('bootstrap-datetimepicker.css', 'plugins/ace/css/bootstrap-datetimepicker.css') !!}
{!! Theme::asset()->container('custom-css')->usePath()->add('backstage', 'css/backstage/backstage.css') !!}
{!! Theme::asset()->container('specific-js')->usePath()->add('fuelux.spinner.min.js', 'plugins/ace/js/fuelux/fuelux.spinner.min.js') !!}
{!! Theme::asset()->container('specific-js')->usePath()->add('moment', 'plugins/ace/js/date-time/moment.min.js') !!}
{!! Theme::asset()->container('specific-js')->usePath()->add('datepickertime-js', 'plugins/ace/js/date-time/bootstrap-datetimepicker.min.js') !!}
{!! Theme::asset()->container('custom-js')->usePath()->add('datefuelux-js', 'js/doc/datefuelux.js') !!}
{!! Theme::asset()->container('custom-js')->usePath()->add('linkManage-js', 'js/linkManage.js') !!}
{!! Theme::asset()->container('specific-css')->usePath()->add('validform-css', 'plugins/jquery/validform/css/style.css') !!}
{!! Theme::asset()->container('specific-js')->usePath()->add('validform-js', 'plugins/jquery/validform/js/Validform_v5.3.2_min.js') !!}
{!! Theme::widget('ueditor')->render() !!}
<script>
    $(function(){
        $(".registerform").Validform(
            {
                tiptype:3,
                showAllError:true,
            }
        )

    })
    jQuery(function($) {


        $('#input_upload_file').ace_file_input({
            style:'well',
            btn_choose:'上传图片',
            btn_change:null,
            no_icon:' ace-icon ace-icon fa fa-picture-o',
            droppable:true,
            thumbnail:'small'//large | fit
            //,icon_remove:null//set null, to hide remove/reset button
            /**,before_change:function(files, dropped) {
						//Check an example below
						//or examples/file-upload.html
						return true;
					}*/
            /**,before_remove : function() {
						return true;
					}*/
            ,
            preview_error : function(filename, error_code) {
                //name of the file that failed
                //error_code values
                //1 = 'FILE_LOAD_FAILED',
                //2 = 'IMAGE_LOAD_FAILED',
                //3 = 'THUMBNAIL_FAILED'
                //alert(error_code);
            }

        }).on('change', function(){
            //console.log($(this).data('ace_input_files'));
            //console.log($(this).data('ace_input_method'));
        });

        $('#spinner3').ace_spinner({
            value:0,
            min:0,
            max:100,
            step:1,
            on_sides: true,
            icon_up:'ace-icon fa fa-plus smaller-75',
            icon_down:'ace-icon fa fa-minus smaller-75',
            btn_up_class:'btn-success' ,
            btn_down_class:'btn-danger'
        });



    });

</script>